import request from '@/utils/request'

// 查询测试视频管理列表
export function listFishTestVideo(query) {
  return request({
    url: '/system/fishTestVideo/list',
    method: 'get',
    params: query
  })
}

// 查询测试视频管理详细
export function getFishTestVideo(videoId) {
  return request({
    url: '/system/fishTestVideo/' + videoId,
    method: 'get'
  })
}

// 新增测试视频管理
export function addFishTestVideo(data) {
  return request({
    url: '/system/fishTestVideo',
    method: 'post',
    data: data
  })
}

// 修改测试视频管理
export function updateFishTestVideo(data) {
  return request({
    url: '/system/fishTestVideo',
    method: 'put',
    data: data
  })
}

// 删除测试视频管理
export function delFishTestVideo(videoId) {
  return request({
    url: '/system/fishTestVideo/' + videoId,
    method: 'delete'
  })
}

// 鱼类检测测试
export function testFishDetection(data) {
  return request({
    url: '/system/fishTestVideo/test',
    method: 'post',
    data: data
  })
}

// 停止鱼类检测测试
export function stopFishDetection(videoId) {
  return request({
    url: '/system/fishTestVideo/stopTest',
    method: 'post',
    params: { videoId }
  })
}
